// signin_nowait.js
// Automatically jump to the new page after signing in without waiting for 
// seven seconds.
// Copied from http://userscripts.org/scripts/review/129834

getOptions(["SignIn.NoWaitAfterSignIn"], function(response)
{
	if(!response.NoWaitAfterSignIn)
		return;
	for(var i = 0; i < document.links.length; ++i)
	{
		var href = document.links[i].href;
		if(href.match(/^http:\/\/.+?\/login\.php.*/) || 
			href.match(/^http:\/\/find\.stuhome.net\/index\.php\/Login.*/))
			location.replace(href);
	}
});

